Skip to content

feat!: Drop webgl1 support#7453

Draft
CommanderStorm wants to merge 7 commits intomaplibre:mainfrom
CommanderStorm:drop-webgl
Draft

feat!: Drop webgl1 support#7453
CommanderStorm wants to merge 7 commits intomaplibre:mainfrom
CommanderStorm:drop-webgl

Conversation

@CommanderStorm
Copy link
Copy Markdown
Member

@CommanderStorm CommanderStorm commented Apr 12, 2026

This PR is the part of v6 that will drop the webgl1 support.
We have talked about this for a while and I don't think we have gotten a lot of pushback.

This blocks a few of the more agressive performance fixes for 3d terrain, such as not needing 2 frames every frame (-> async)

@CommanderStorm CommanderStorm added this to the 6.0 milestone Apr 12, 2026
expect(s1.length).toBeLessThan(5);
const s2 = setMinus(expectedEntriesInSourcemapJSON, actualEntriesInSourcemapJSON);
expect(s2.length).toBeLessThan(17);
expect(s2.length).toBeLessThan(18);
Copy link
Copy Markdown
Member Author

@CommanderStorm CommanderStorm Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@birkskyum since you touched this last, what does this mean? For me this test is a bit magical and I don't fully get what is beign tested, but likely this just me not having worked with sourcemaps 😓

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 12, 2026

Codecov Report

❌ Patch coverage is 95.08197% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.77%. Comparing base (d5c86fe) to head (d18bdbf).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...o/projection/globe_projection_error_measurement.ts 75.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7453      +/-   ##
==========================================
- Coverage   92.77%   92.77%   -0.01%     
==========================================
  Files         289      289              
  Lines       24017    24039      +22     
  Branches     5100     5084      -16     
==========================================
+ Hits        22282    22302      +20     
- Misses       1735     1737       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@HarelM
Copy link
Copy Markdown
Collaborator

HarelM commented Apr 12, 2026

I've added a link in the following issue, just in case:

Comment thread src/ui/default_locale.ts Outdated
'CooperativeGesturesHandler.WindowsHelpText': 'Use Ctrl + scroll to zoom the map',
'CooperativeGesturesHandler.MacHelpText': 'Use ⌘ + scroll to zoom the map',
'CooperativeGesturesHandler.MobileHelpText': 'Use two fingers to move the map',
'Map.WebGL2NotSupported.Full': 'We are sorry, but it seems that your browser does not support WebGL, a technology for rendering 3D graphics on the web.',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should say WebGL2 instead of just webgl

Comment thread src/ui/default_locale.ts Outdated
Comment thread src/ui/default_locale.ts
'Map.WebGL2NotSupported.Full': 'We are sorry, but it seems that your browser does not support WebGL2, a technology for rendering 3D graphics on the web.',
'Map.WebGL2NotSupported.Short': 'WebGL2 is required to display this map.',
'Map.WebGL2NotSupported.LearnMore': 'Read more',
'Map.WebGL2NotSupported.LearnMoreUrl': 'https://wiki.openstreetmap.org/wiki/This_map_requires_WebGL',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This page only speak of "WebGL" being required - not a single reference to webgl2. I don't know if we best make a separate page for webgl2, or if a note on the existing page about maplibre v6+.

Copy link
Copy Markdown
Member Author

@CommanderStorm CommanderStorm Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once we upgrade OSM I will have to upgrade that wiki anyhow. So should be the require a different docs.

Alternatively, we can just have a dup of that, but it would likely end up being a dup..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants